﻿@model IEnumerable<TuanAnhPersonalWeb.Models.TUANANH__COMMENT>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Index</h2>

<table>
    <tr>
    <th>
    Tên project được bình luận
    </th>
        <th>
            Nội dung bình luận
        </th>
        <th>
            USERNAME
        </th>
        <th> Ngày bình luận</th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
    <td>
    @Html.DisplayFor(m=>item.TUANANH__PROJECT.PROJECT_NAME)
    </td>
        <td>
            @Html.DisplayFor(modelItem => item.COMMENT_TEXT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.USERNAME)
        </td>
        <td>
        @String.Format("{0:dd/MM/yyyy}", item.DATE)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.PROJECT_ID, date = item.DATE }) |
            @Html.ActionLink("Details", "Details", new {  id=item.PROJECT_ID, date=item.DATE  }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.PROJECT_ID, date = item.DATE })
        </td>
    </tr>
}

</table>
